<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/12
  Time: 9:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <link type="text/css" rel="stylesheet" href="static/css/style.css">
    <style type="text/css">
        html, body {
            margin: 0px;
            padding: 0px;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(to top right, white, paleturquoise, white, peachpuff, white);
        }


        .big {
            /* background-color:cornsilk; */
            width: 450px;
            height: 420px;
            position: relative;
            border-radius: 5% 5%;
            top: 130px;
            margin: 0 auto;
            opacity: 1.5;

        }

        h2 {
            position: relative;
            text-align: center;
            top: 10px;
        }

        .small {
            width: 350px;
            height: 350px;
            position: relative;
            top: 50px;
            margin: 0 auto;
        }

        .wjmm {
            float: right;
            position: relative;
            top: 10px;
        }

        .btn-default {
            position: relative;
            left: 120px;
            top: 40px;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;作业棒&nbsp;&nbsp;&nbsp;</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">


            <ul class="nav navbar-nav navbar-right">
                <li><a href="index.jsp">&nbsp;&nbsp;&nbsp;首页&nbsp;&nbsp;&nbsp;</a></li>
                <li class="active"><a href="pages/user/login.jsp">&nbsp;&nbsp;&nbsp;登录&nbsp;&nbsp;&nbsp; <span
                        class="sr-only">(current)</span></a></li>
                <li><a href="pages/user/regist.jsp">&nbsp;&nbsp;&nbsp;注册&nbsp;&nbsp;&nbsp;</a></li>

            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="login">

    <div class="big">
        <div class="small">
            <form action="UserServlet" method="POST">
                <input type="hidden" name="action" value="login">
                <h2>用户登录</h2>
                </br>
                <span>${requestScope.msg}</span>
                <div class="form-group">
                    <label for="exampleInputEmail1">用户名</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Username"
                           name="username">
                </div>
                <br/>

                <div class="form-group">
                    <label for="exampleInputPassword1">密码</label>
                    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"
                           name="password">
                </div>

                <div class="wjmm"><a href="#">忘记密码?</a></div>
                </br>

                <button type="submit" class="btn btn-default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;登录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
            </form>
        </div>
    </div>
</div>
</body>
</html>

